import React from 'react'
import ReactDOM from 'react-dom'

import AppUI  from './components/appui'

import store  from './reudx/store'



function render() {
    ReactDOM.render(<AppUI  store={store}/> ,document.getElementById('root'))
   }


render()  //初始的时候调用一次
store.subscribe(render)  //监听store发生变化后重新去渲染 dom组件


